package com.axxy.singleton;

/**
 * @author 一缕茜阳
 * @date 2021/7/28
 */
public class Store4 {
    private static Store4 store4 = new Store4();
    
    private Store4(){
        System.out.println("Store4——直接在定义变量的时候实例化，然后直接返回该实例");
    }

    public static Store4 getInstance(){
        return store4;
    }


}
